import { useContext } from 'react';
import './App.css';
import IdeaCanvasApp from './components/IdeaCanvasApp';
import WxAuthForm from './components/WxAuthForm';
import { ModalContext } from './context/ModalContext';

function App() {
  const {isModalOpen, hideModal} = useContext(ModalContext);
  return (
    <div>
        <IdeaCanvasApp></IdeaCanvasApp>
        <WxAuthForm isShow={isModalOpen} onHide={hideModal}></WxAuthForm>
    </div>
  );
}

export default App;
